import request from "@/utils/request"

export const getWarehouseLocaPageApi = (page,pageSize)=>request.get(`/warehouse/loca?page=${page}&pageSize=${pageSize}`)

export const addWarehouseLocaApi = (data) => request.post('/warehouse/loca', data)

export const updateWarehouseLocaApi = (data) => request.put(`/warehouse/loca`, data)

export const deleteWarehouseLocaApi = (id) => request.delete(`/warehouse/loca/${id}`)

export const getWarehouseLocaListApi = (warehouseAreaId)=>request.get(`/warehouse/loca/list?warehouseAreaId=${warehouseAreaId}`)